﻿using System.Data;
using Pantry.DataAccess;
using Pantry.Entity;

namespace Pantry.Business
{
    public class  ServiceRelateBus
    {
        private readonly ServiceRelateDao _serviceRelateDao;
        public ServiceRelateBus()
        {
            _serviceRelateDao = new ServiceRelateDao();
        }
        public DataTable Select(int serviceParentId, int organisationId)
        {
            return _serviceRelateDao.Select(serviceParentId, organisationId);

        }
        public bool Insert(ServiceRelate serviceOrgRealate)
        {
            return _serviceRelateDao.Insert(serviceOrgRealate);
        }
        public bool Update(ServiceRelate serviceOrgRealate)
        {
            return _serviceRelateDao.Update(serviceOrgRealate);
        }
        public bool Delete(ServiceRelate serviceOrgRealate)
        {
            return _serviceRelateDao.Delete(serviceOrgRealate);
        }
        public bool IsExist(ServiceRelate serviceOrgRealate)
        {
            return _serviceRelateDao.IsExist(serviceOrgRealate);
        }
    }
}
